package com.yymx.toback.common.enums;

/**
 * @Author: ace
 * @Description:
 * @Date: Create in 10:02 2018/12/13
 */
public enum SmsResultCode {
    DUPLICATE("重复短信","8"),
    SUCCESS("调用运营商接口正常","0"),
    MAXLIMITED_ONE_DAY("24小时内同一手机号提交次数上限","17"),
    MAXLIMITED_ONE_HOURE("1小时同一手机号提交次数上限","22"),
    OVERFLOW_LIMITED("发送频率过快","33"),
    UNKNOW_ERROE("调用未知错误","-50"),
    SYSTEM_BUSY("系统繁忙","-51");
    private String code;
   private String message;

    public String getCode() {
        return code;
    }

    public SmsResultCode setCode(String code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public SmsResultCode setMessage(String message) {
        this.message = message;
        return this;
    }

    SmsResultCode(String message, String code) {
        this.code = code;
        this.message = message;
    }
}
